package com.zxy.ziems.server.alarm.pojo.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Null;
import lombok.Data;

/**
 * 告警类型
 * @author chdzq
 * @create 2023/3/28
 */
@Data
public class AlarmTypeDTO {
    /**
     * 主键
     */
    @Null(message = "新增告警类型，ID必须为空", groups = Add.class)
    @NotBlank(message = "告警类型ID不能为空", groups = {Update.class, Select.class})
    private String id;

    /**
     * 告警类型名称
     */
    @NotBlank(message = "告警类型名称不能为空", groups = {Update.class, Add.class})
    private String name;

    /**
     * 告警描述
     */
    private String description;

    public interface Add{}
    public interface Update{}
    public interface Select {}

}
